package com.gxa.sideParking.admin.mapper;

import com.gxa.sideParking.admin.pojo.Manager;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.sideParking.core.common.JsonResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gxa
 * @since 2022-10-05
 */
@Repository
public interface ManagerMapper extends BaseMapper<Manager> {

    //分页查询
    List<Manager> findAll(@Param("start") Integer start, @Param("off") Integer off);

    //时间查询
    List<Manager> findTime(String managerDate);

    //查询出账总数
    List<Manager> findOutMoney();

    //查询进账总数
    List<Manager> findPutMoney();

    //本周数据查询
    List<Manager> findWeek();

    //本月数据查询
    List<Manager> findMonth();

    //上月数据查询
    List<Manager> findLastMonth();
}
